$OpenBSD: patch-generate_passwd_c,v 1.2 2017/05/18 23:42:44 espie Exp $
Index: generate_passwd.c
--- generate_passwd.c.orig
+++ generate_passwd.c
@@ -24,7 +24,10 @@
    Usage: a.out [salt]
 */
 
-#define NULL 0
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+#include <stdlib.h>
 
 main(argc, argv)
 char **argv;
